<!DOCTYPE html>
<html>
<head>
<title>劳动纠纷</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.dept" @keyup.enter="query" placeholder="部门">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.post" @keyup.enter="query" placeholder="岗位">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="员工姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("labordispute:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("labordispute:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("labordispute:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("labordispute:firApprove"))
			<a class="btn btn-primary" @click="firApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;一级调解</a>
			#end
			#if($shiro.hasPermission("labordispute:secApprove"))
			<a class="btn btn-primary" @click="secApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;二级调解</a>
			#end
			#if($shiro.hasPermission("labordispute:thiApprove"))
			<a class="btn btn-primary" @click="thiApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;仲裁结果</a>
			#end
			#if($shiro.hasPermission("labordispute:fouApprove"))
			<a class="btn btn-primary" @click="fouApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;执行结果</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">员工姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="laborDispute.name" readonly="readonly"  @click="popPage" placeholder="请选择"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="laborDispute.idno" placeholder="身份证号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">公司名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="laborDispute.company" placeholder="公司名称"/>
			    </div>
			</div>
								<!--	<div class="form-group">
			   	<div class="col-sm-2 control-label">公司id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="laborDispute.companyId" placeholder="公司id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="laborDispute.dept" readonly="readonly" placeholder="部门"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="laborDispute.post" placeholder="岗位名称"/>
			    </div>
			</div>
								<!--	<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位id</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="laborDispute.postId" placeholder="岗位id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-2 control-label">争议概况</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="laborDispute.disputeOverview" placeholder="争议概况"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">争议类型</div>
			   	<div class="col-sm-10">
					<select v-model="laborDispute.disputeType" class="form-control">
						<option v-for="disputeType in dictList1" :value="disputeType.value">{{disputeType.label}}</option>
					</select>
			      <!--<input type="text" class="form-control" v-model="laborDispute.disputeType" placeholder="争议类型"/>-->
			    </div>
			</div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div v-show="showtable1" class="form-group">
				<div class="col-sm-2 control-label">一级调整说明</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="laborDispute.firAdjustExplain" placeholder="一级调整说明"/>
				</div>
			</div>
			<div v-show="showtable1" class="form-group">
				<div class="col-sm-2 control-label">一级调整结果</div>
				<div class="col-sm-10">
					<label class="radio-inline"><input type="radio" v-model="laborDispute.firAdjustResult" value="0"/>一致</label>
					<label class="radio-inline"><input type="radio" v-model="laborDispute.firAdjustResult" value="1"/>不一致</label>

					<!--<input type="text" class="form-control" v-model="laborDispute.firAdjustResult" placeholder="一级调整结果"/>-->
				</div>
			</div>
			<div v-show="showtable2" class="form-group">
				<div class="col-sm-2 control-label">二级调整说明</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="laborDispute.secAdjustExplain" placeholder="二级调整说明"/>
				</div>
			</div>
			<div v-show="showtable2" class="form-group">
				<div class="col-sm-2 control-label">二级调整结果</div>
				<div class="col-sm-10">
					<label class="radio-inline"><input type="radio" v-model="laborDispute.secAdjustResult" value="0"/>一致</label>
					<label class="radio-inline"><input type="radio" v-model="laborDispute.secAdjustResult" value="1"/>不一致</label>

<!--
					<input type="text" class="form-control" v-model="laborDispute.secAdjustResult" placeholder="二级调整结果"/>
-->
				</div>
			</div>
			<div v-show="showtable3" class="form-group">
				<div class="col-sm-2 control-label">仲裁部门</div>
				<div class="col-sm-10">
					<select v-model="laborDispute.arbitrationDepartment" class="form-control">
						<option v-for="arbitrationDepartment in dictList2" :value="arbitrationDepartment.value">{{arbitrationDepartment.label}}</option>
					</select>
					<!--<input type="text" class="form-control" v-model="laborDispute.arbitrationDepartment" placeholder="仲裁部门"/>-->
				</div>
			</div>
			<div v-show="showtable3" class="form-group">
				<div class="col-sm-2 control-label">仲裁结果</div>
				<div class="col-sm-10">
					<label class="radio-inline"><input type="radio" v-model="laborDispute.arbitrationResult" value="0"/>一致</label>
					<label class="radio-inline"><input type="radio" v-model="laborDispute.arbitrationResult" value="1"/>不一致</label>

<!--
					<input type="text" class="form-control" v-model="laborDispute.arbitrationResult" placeholder="仲裁结果"/>
-->
				</div>
			</div>
			<div v-show="showtable3" class="form-group">
				<div class="col-sm-2 control-label">仲裁日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" placeholder="仲裁时间"
						   id="arbitrationTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
					/>
				</div>
			</div>
			<div v-show="showtable4" class="form-group">
				<div class="col-sm-2 control-label">是否生效</div>
				<div class="col-sm-10">
					<label class="radio-inline"><input type="radio" v-model="laborDispute.iseffective" value="0"/>是</label>
					<label class="radio-inline"><input type="radio" v-model="laborDispute.iseffective" value="1"/>否</label>

				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
</div>


<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/js/hr/labordispute.js?_${date.systemTime}"></script>
</body>
</html>